<?php if($this->Session->read('Auth.User.role') === 'admin'): ?>
<ul class="submenu">
<li <?php if($this->params['action'] == 'index'): echo 'class="active"'; endif; ?> ><?php echo $this->Html->link('Holidays',array('action' => 'index')); ?></li>
</ul>
<?php endif; ?>

<?php
	echo $this->Form->create('Holiday');
 	if($this->Session->read('Auth.User.role') === 'superadmin' || $this->Session->read('Auth.User.role') === 'admin'): ?>
	<fieldset>
	<legend>Edit holiday</legend>
	<?php
	
	echo $this->Form->input('title', array('label' => 'Holiday name'));
	echo $this->Form->input('start_date', array('label' => 'Start date'));
	echo $this->Form->input('end_date', array('label' => 'End date')); ?>
	</fieldset>
    <?php  
	endif; 
	echo $this->Form->input('id', array('type' => 'hidden'));
	echo $this->Form->end('Save Holiday'); ?>
	
	


    

